package com.thrd.taiexhibition.utils;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * @author: ${唐杰}
 * @date: 2021/4/6
 * 跳转工具类
 *
 */
public class JumpUtils {
    //产业展
    public static final String EXHIBITION="/app/tiha";
    //产业展iD
    public static final String EXHIBITION_ID="id";

    //企业
    public static final String ENTERPRISE="/app/enterprise";
    //企业ID
    public static final String ENTERPRISE_ID="id";


    //软文详情
    public static final String RICH_TEXT="/app/rich";
    //软文ID
    public static final String RICH_ID="richId";

    /**
     * 0	产业展
     * 1	企业
     * 2	软文
     * 3	推荐城市
     * 4	城市故事栏目
     * 5	重点产业栏目
     * 6	投资环境栏目
     * 7	热点关注栏目
     */
    public static final void  JumpUtils(int code,long id){
        switch (code){
            //产业展
            case 0:
                ARouter.getInstance().build(EXHIBITION).withLong(EXHIBITION_ID,id) .navigation();
                //ARouter.getInstance().build("/app/tiha") .withLong("id",id).navigation();
                break;
            //1	企业
            case 1:
                ARouter.getInstance().build(ENTERPRISE).withLong(ENTERPRISE_ID,id) .navigation();

                break;
            //软文
            case 2:
                ARouter.getInstance().build(RICH_TEXT).withLong(RICH_ID,id) .navigation();
                break;

        }


//        ARouter.getInstance().build("/app/home") .navigation()


    }

}
